package com.gof.example.state.gate;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/13 17:25.
 * haiming.fei@tongdun.cn
 */
public class App {

    public static void main(String[] args) {
        Gate gate = new Gate();
        gate.click();
        gate.click();
        gate.complete();
        gate.click();
        gate.click();
        gate.click();

        gate.complete();
        gate.timeout();
        gate.complete();
        gate.complete();

        gate.timeout();
    }
}
